package cn.zc.curriculum.service.controller.curriculum;


import cn.tools.core.base.R;
import cn.zc.curriculum.entity.Dto.InterfaceManagerDto;
import cn.zc.curriculum.service.service.InterfaceManagerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author keno
 * @since 2022-02-19
 */
@Api(tags = "查询标题或友链接口")
@RestController
@RequestMapping("/curriculum")
public class InterfaceManagerController {

    @Resource
    private InterfaceManagerService interfaceManagerService;

    /**
     * 查询出首页所需菜单目录，友链，轮播图
     * @param
     * @return
     */
    @ApiOperation(value = "查询出首页所需菜单目录，友链，轮播图")
    @DeleteMapping("/find/InterfaceManager")
    private R<Object> findInterfaceManager(){
        Map<String, List<InterfaceManagerDto>> interfaceManagerDto = interfaceManagerService.findAllInterfaceManager();
        return R.success(interfaceManagerDto);
    }
}

